import { _decorator, Component, Node, RigidBody2D } from 'cc';
import { back } from './back';
const { ccclass, property } = _decorator;

@ccclass('j14')
export class j14 extends back {
    @property(RigidBody2D) 
    leftWheel: RigidBody2D;


    onClickLeftBtn() {
        // 小车左轮给逆时针扭矩
        this.leftWheel.applyTorque(200, true);
    }

    onClickRightBtn() {
        // 小车左轮顺时针扭矩
        this.leftWheel.applyTorque(-200, true);
    }


    start() {

    }

    update(deltaTime: number) {
        
    }
}


